package com.zhilei.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhilei.pojo.Industry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 行业表 Mapper 接口
 * </p>
 *
 * @author 志磊
 * @since 2024-09-22
 */
@Repository
@Mapper
public interface IndustryMapper extends BaseMapper<Industry> {

    /**
     * 根据id查询是否存在子id
     *
     * @param id
     * @return
     */
    List<Industry> getIndustryBySecondId(@Param("id") String id);
}
